package cn.stylefeng.guns.modular.agv.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.agv.entity.HikAgvTask;
import cn.stylefeng.guns.modular.agv.model.params.HiKAgvCallbackParm;
import cn.stylefeng.guns.modular.agv.model.params.HikAgvTaskParam;
import cn.stylefeng.guns.modular.agv.model.result.HikAgvTaskResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * <p>
 * 海康AGV任务单 服务类
 * </p>
 *
 * @author zhangzh
 * @since 2024-06-06
 */
public interface HikAgvTaskService extends IService<HikAgvTask> {

    /**
     * 新增
     *
     * @author zhangzh
     * @Date 2024-06-06
     */
    void add(HikAgvTaskParam param);

    /**
     * 海康 创建任务
     * @param param
     * @return
     */
    ResponseData addTask(HikAgvTaskParam param);

    ResponseData addTaskcc(HikAgvTaskParam param);

    /**
     * 删除
     *
     * @author zhangzh
     * @Date 2024-06-06
     */
    void delete(HikAgvTaskParam param);

    /**
     * 更新
     *
     * @author zhangzh
     * @Date 2024-06-06
     */
    void update(HikAgvTaskParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-06-06
     */
    HikAgvTaskResult findBySpec(HikAgvTaskParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhangzh
     * @Date 2024-06-06
     */
    List<HikAgvTaskResult> findListBySpec(HikAgvTaskParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-06-06
     */
     LayuiPageInfo findPageBySpec(HikAgvTaskParam param, String condition);

    /**
     * 设置优先级
     * @return
     */
    ResponseData setPriority(HikAgvTaskParam param);


    ResponseData clear(String roadWayCode);

    ResponseData clear2(String roadWayCode);

    ResponseData cancelTask(String taskCode);


    /**
     *
     * @param hiKAgvCallbackParm
     */
    public void agvCallback(HiKAgvCallbackParm hiKAgvCallbackParm);

    public void agvStorageCallback(HiKAgvCallbackParm hiKAgvCallbackParm);





}
